package com.bjb.vr.remote.ws.websocket.constants;

public class WebSocketConstants {

    public static final String MSG_ERROR_PARAMS = "参数错误!";

    public static final String MSG_ERROR_DUPCONNECT = "重复连接!";

    public static final String MSG_ERROR_TEACHER_OFFLINE = "老师未在线!";

    public static final String MSG_ERROR_DEV_NO_ROOM = "未找到设备的房间";

    public static final String MSG_ERROR_ADMIN_NO_ROOM = "未找到管理端的房间";

    public static final String MSG_ERROR_CLIENT_ON_OPEN = "客户端已在连接中";

    public static final String MSG_ERROR_ADMIN_ON_OPEN = "设备组正在使用中,请选择其他设备组";

    public static final String MSG_SUCC_DEVICE_CONNECTED = "connect success";

    public static final String SUCCESS_CODE = "00";

    public static final String ERROR_CODE = "01";


    public static final int  WEBSOCKET_CLIENT_STATE_ONOPEN = 0;

    public static final int  WEBSOCKET_CLIENT_STATE_OPENED = 1;

    public static final int  WEBSOCKET_CLIENT_STATE_CLOSED = 2;

    public static final int  WEBSOCKET_CLIENT_STATE_ERROR = 3;

    public static final String WEBSOCKET_CLIENT_MSG_TYPE_TEXT = "TEXT";

    public static final String WEBSOCKET_CLIENT_MSG_TYPE_BINARY = "BINARY";

    //在线状态
    public static final int  WEBSOCKET_CLIENT_ONLINE_STATE_ON = 1;
    //离线状态
    public static final int  WEBSOCKET_CLIENT_ONLINE_STATE_OFF = 0;
}
